// useRoutes 是 react-router-dom 库中提供的一个 Hook
import React from "react";
import { useRoutes } from "react-router-dom";
import routerConfig from "./routerConfig";
import Header from "./components/Header";
// import { getStore } from "./store";
import { Provider } from "react-redux";
// const store = getStore();
function App({ store }) {
  return (
    <Provider store={store}>
      <Header />
      {useRoutes(routerConfig)}
    </Provider>
  );
}
export default App;
